<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
	<head>
		<base href="<%=basePath%>" />
		<link rel="stylesheet" href="css/common.css" type="text/css" />
		<title>显示/隐藏左侧导航栏</title>
	</head>
	<script language="JavaScript">
	function Submit_onclick() {
		if (parent.myFrame.cols == "199,7,*") {
			parent.myFrame.cols = "0,7,*";
			document.getElementById("ImgArrow").src = "images/switch_right.gif";
			document.getElementById("ImgArrow").alt = "打开左侧导航栏";
		} else {
			parent.myFrame.cols = "199,7,*";
			document.getElementById("ImgArrow").src = "images/switch_left.gif";
			document.getElementById("ImgArrow").alt = "隐藏左侧导航栏";
		}
	}

	function MyLoad() {
		if (window.parent.location.href.indexOf("MainUrl") > 0) {
			window.top.midFrame.document.getElementById("ImgArrow").src = "images/switch_right.gif";
		}
	}
</script>
	<body onload="MyLoad()">
		<div id="switchpic">
			<a href="javascript:Submit_onclick()"><img
					src="images/switch_left.gif" alt="隐藏左侧导航栏" id="ImgArrow" />
			</a>
		</div>
	</body>
</html>
